package com.four.bergain.dao;

import com.four.bergain.entity.BargainProperty;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-12-19
 */
public interface BargainPropertyMapper extends BaseMapper<BargainProperty> {

    /**
     * 添加规格参数
     * @param property
     */
    void saveBargainProperty(@Param("property") BargainProperty property);

    /**
     * 修改规格参数
     * @param property
     */
    void updateBargainProperty(@Param("property") BargainProperty property);

    /**
     * 回显规格
     * @param baId
     * @return
     */
    BargainProperty getByBaId(@Param("baId") Integer baId);

}
